package org.jeecg.modules.purchaseList.service;

import org.jeecg.modules.purchaseList.entity.MtPurchaseEquip;
import org.jeecg.modules.purchaseList.entity.MtPurchase;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 采购表单
 * @Author: jeecg-boot
 * @Date:   2023-12-12
 * @Version: V1.0
 */
public interface IMtPurchaseService extends IService<MtPurchase> {

	/**
	 * 添加一对多
	 *
	 * @param mtPurchase
	 * @param mtPurchaseEquipList
	 */
	public void saveMain(MtPurchase mtPurchase,List<MtPurchaseEquip> mtPurchaseEquipList) ;

	/**
	 * 修改一对多
	 *
   * @param mtPurchase
   * @param mtPurchaseEquipList
	 */
	public void updateMain(MtPurchase mtPurchase,List<MtPurchaseEquip> mtPurchaseEquipList);

	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

}
